<php>
        //if($actionName == 'index'){            
         //   $links = S('links');
         //   }
            if(empty($links)){
            $links = M('links')->where(array('status' => 1 , 'is_where' => 2))->select(); 
            S('links',$links);
            $links = S('links');
            }
        
</php>
<div class="clearfix"></div>
<footer class="foot">
<div class="ftBox">
  <foreach name='links' item='links'>
  <a href='{$links.src}'target="_blank" title="{$links.remark}">{$links.title}</a>&nbsp;&nbsp;&nbsp;&nbsp;
  </foreach>
</div>
    <div class="container ftBottom text-center">
        <p>
            <span>浙ICP备12042711号-5</span>
            <span>Powered by SYJ<a href="{:U('Admin/Admin/adminIndex')}" target="_blank">后台管理</a></span>
        </p>
        {$count_code}
    </div>

</footer>